package ooday02;

public class Chick01 extends Animal01{
    char sex;

    Chick01(String name,int age,String color,char sex){
        super(name,age,color);
        this.sex =sex;
    }

    void egg(){
        System.out.println(name+"是一只"+color+"色的鸡，它正在下蛋");
    }

    void drink(){
        System.out.println("一只叫"+name+"的鸡正在喝水");
    }
}
